home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / appkit / ClipView.h < prev    next >
Text File  |  1992-09-11  |  2KB  |  86 lines

  1. /*
  2.     ClipView.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "View.h"
  8. #import "color.h"
  9.  
  10. @interface ClipView : View
  11. {
  12.     float               backgroundGray;
  13.     id                  docView;
  14.     NXRect              _docRect;
  15.     id                  cursor;
  16.     void               *_private;
  17.     struct __clFlags {
  18. #ifdef __BIG_ENDIAN__
  19.     unsigned int        isGraySet:1;
  20.     unsigned int        _RESERVED:11;
  21.     unsigned int        _onlyUncovered:1;
  22.     unsigned int        _reflectScroll:1;
  23.     unsigned int        _usedByCell:1;
  24.     unsigned int        _scrollClipTo:1;
  25. #else
  26.     unsigned int        _scrollClipTo:1;
  27.     unsigned int        _usedByCell:1;
  28.     unsigned int        _reflectScroll:1;
  29.     unsigned int        _onlyUncovered:1;
  30.     unsigned int        _RESERVED:11;
  31.     unsigned int        isGraySet:1;
  32. #endif
  33.     }                   _clFlags;
  34. }
  35.  
  36. + initialize;
  37.  
  38. - initFrame:(const NXRect *)frameRect;
  39. - setBackgroundGray:(float)value;
  40. - (float)backgroundGray;
  41. - setBackgroundColor:(NXColor)color;
  42. - (NXColor)backgroundColor;
  43. - drawSelf:(const NXRect *)rects :(int)rectCount;
  44. - setDocView:aView;
  45. - docView;
  46. - getDocRect:(NXRect *)aRect;
  47. - setDocCursor:anObj;
  48. - resetCursorRects;
  49. - getDocVisibleRect:(NXRect *)aRect;
  50. - descendantFrameChanged:sender;
  51. - descendantFlipped:sender;
  52. - setCopyOnScroll:(BOOL)flag;
  53. - setDisplayOnScroll:(BOOL)flag;
  54. - autoscroll:(NXEvent *)theEvent;
  55. - constrainScroll:(NXPoint *)newOrigin;
  56. - rawScroll:(const NXPoint *)newOrigin;
  57. - write:(NXTypedStream *)stream;
  58. - read:(NXTypedStream *)stream;
  59. - free;
  60.  
  61. - rotate:(NXCoord)angle;
  62. - rotateTo:(NXCoord)angle;
  63. - setDrawRotation:(NXCoord)angle;
  64.  
  65. - awake;
  66. - moveTo:(NXCoord)x :(NXCoord)y;
  67. - sizeTo:(NXCoord)width :(NXCoord)height;
  68. - setDrawOrigin:(NXCoord)x :(NXCoord)y;
  69. - setDrawSize:(NXCoord)width :(NXCoord)height;
  70. - translate:(NXCoord)x :(NXCoord)y;
  71. - scale:(NXCoord)x :(NXCoord)y;
  72.  
  73. /* 
  74.  * The following new... methods are now obsolete.  They remain in this  
  75.  * interface file for backward compatibility only.  Use Object's alloc method  
  76.  * and the init... methods defined in this class instead.
  77.  */
  78. + newFrame:(const NXRect *)frameRect;
  79.  
  80. @end
  81.  
  82. @interface View(ClipViewSuperview)
  83. - reflectScroll:aClipView;
  84. - scrollClip:aClipView to:(const NXPoint *)aPoint;
  85. @end
  86.